package chapter4.comJDBC;

import java.util.List;
import java.util.Map;

import chapter4.comJDBC.User;
import chapter4.comJDBC.UserService;

public class UserAction {
	private UserService userService;

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public void executeTest() {
		userService.executeTest();
	}
	public void updateInsert(User user) {
		userService.updateInsert(user);
	}
	public void updateEdit(String id) {
		userService.updateEdit(id);
	}	
	public void updateDel() {
		userService.updateDel();
	}	
	public String findNameById(int id) {
		return userService.findNameById(id);
	}

	public int findNumbers() {
		return userService.findNumbers();
	}
	public List<Map<String, Object>> findAllMap() {
		return userService.findAllMap();
	}
	public List<Map<String, Object>> getList(String name) {
		return userService.getList(name);
	}	

	public Map<String, Object> findMapById(int id) {
		return userService.findMapById(id);
	}


}
